﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wekit.Model.Info;
using NHibernate;
namespace Wekit.Repository.Article
{
   public class ArticleRepository:BaseRepository<Wekit.Model.Info.Article>,IArticleRepository
    {
       /// <summary>
       /// 增加文章实体对象
       /// </summary>
       /// <param name="article"></param>
       /// <returns></returns>
        public Model.Info.Article addArticle(Model.Info.Article article)
        {
            return add(article,true);
        }

       /// <summary>
       /// 删除文章实体
       /// </summary>
       /// <param name="article"></param>
       /// <returns></returns>
        public bool deleteArticle(Model.Info.Article article)
        {
            return delete(article, true);
        }
    }
}
